package com.homedo.microservice.distributed.id.service.api;


import com.homedo.microservice.distributed.id.service.api.constant.RemoteService4DistributedIdServiceServiceConstant;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(value = "生成ID操作接口", description = "生成ID操作接口")
@RequestMapping(RemoteService4DistributedIdServiceServiceConstant.SERVICE_ID)
public interface IGenerateIdServiceRemote {

    /**
     * 根据业务标志获取对应分布式ID主键
     *
     * @param key 业务标志
     * @return
     */
    @GetMapping(value = "generateId/{key}")
    String generateId(@PathVariable("key") String key);


}
